All Write-ups
General Skills
General Skills

Log Hunt

Our server seems to be leaking pieces of a secret flag in its logs. The parts are scattered and sometimes repeated. Can you reconstruct the original flag?

Log Hunt

Our server seems to be leaking pieces of a secret flag in its logs. The parts are scattered and sometimes repeated. Can you reconstruct the original flag?

Information Given

Description

Our server seems to be leaking pieces of a secret flag in its logs. The parts are scattered and sometimes repeated. Can you reconstruct the original flag?

Download thelogs and figure out the full flag from the fragments.

Hints

  • • You can use grep to filter only matching lines from the log.
  • • Some lines are duplicates; ignore extra occurrences.

Log File

As you can see we are given a file with the name: server.log.

Server log file

Let's use the search filter with the content: FLAGPART:

Filtered log results

The hint stated: Some lines are duplicates; ignore extra occurrences.

That leaves us with:

[1990-08-09 10:00:10] INFO FLAGPART: {"picoCTF{" + "us3_
[1990-08-09 12:23:43] INFO FLAGPART: y0urlinux_
[1990-08-09 12:25:32] INFO FLAGPART: sk1lls_
[1990-08-09 12:28:45] INFO FLAGPART: cedfa5fb" + "}"}

So the flag is: picoCTF{us3_y0urlinux_sk1lls_cedfa5fb}.

The Flag

picoCTF{'{'}us3_y0urlinux_sk1lls_cedfa5fb}